/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.supinfo.youfood.service;

import com.supinfo.youfood.dao.EmployeDao;
import com.supinfo.youfood.entity.Employe;
import java.util.List;
import javax.ejb.EJB;
import javax.ejb.Stateless;

/**
 *
 * @author Michael
 */
@Stateless
public class EmployeService {
    
    @EJB
    private EmployeDao empDao;
    
    public Employe login(Employe e) {
        return empDao.login(e);
    }
    
    public Employe addEmploye(Employe e)
    {
        return empDao.addEmploye(e);
    }
    
    public List<Employe> getAllEmploye()
    {
        return empDao.getAllEmploye();
    }
    
    public Employe findEmployeById(Long id)
    {
        return empDao.findEmployeById(id);
    }
    
    public Employe refreshEmploye(Employe e)
    {
        return empDao.refreshEmploye(e);
    }
}
